import React, {Component} from 'react';

export default class App extends Component {
    render() {
        return (
            <div>
                <Child name={'dfgag'}/>
            </div>
        );
    }
}

interface IProps {
    name:string
}

class Child extends Component<IProps , any> {
    render() {
        return (
            <div>
                {
                    this.props.name
                }
            </div>
        );
    }
}